package com.Setting.Bug.Entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Arrays;

@TableName("bugs")
public class Bug implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer submitterId;
    private String module;
    private String severity;
    private String regression;
    private String summary;
    private String description;
    private String screenshotPath1;
    private String screenshotPath2;
    private Timestamp createdAt;
    private Timestamp updatedAt;
    private String status;
    @TableField(exist = false)
    private String submitterName;
    @TableField(exist = false)
    private String screenshot1;
    @TableField(exist = false)
    private String screenshot2;
    public Bug() {
    }



    // 生成 getters 和 setters

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSubmitterId() {
        return submitterId;
    }

    public void setSubmitterId(Integer submitterId) {
        this.submitterId = submitterId;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public String getRegression() {
        return regression;
    }

    public void setRegression(String regression) {
        this.regression = regression;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getScreenshotPath1() {
        return screenshotPath1;
    }

    public void setScreenshotPath1(String screenshotPath1) {
        this.screenshotPath1 = screenshotPath1;
    }

    public String getScreenshotPath2() {
        return screenshotPath2;
    }

    public void setScreenshotPath2(String screenshotPath2) {
        this.screenshotPath2 = screenshotPath2;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getSubmitterName() {
        return submitterName;
    }

    public void setSubmitterName(String submitterName) {
        this.submitterName = submitterName;
    }

    public String getScreenshot1() {
        return screenshot1;
    }

    public void setScreenshot1(String screenshot1) {
        this.screenshot1 = screenshot1;
    }

    public String getScreenshot2() {
        return screenshot2;
    }

    public void setScreenshot2(String screenshot2) {
        this.screenshot2 = screenshot2;
    }

    @Override
    public String toString() {
        return "Bug{" +
                "id=" + id +
                ", submitterId=" + submitterId +
                ", module='" + module + '\'' +
                ", severity='" + severity + '\'' +
                ", regression='" + regression + '\'' +
                ", summary='" + summary + '\'' +
                ", description='" + description + '\'' +
                ", screenshotPath1='" + screenshotPath1 + '\'' +
                ", screenshotPath2='" + screenshotPath2 + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", status='" + status + '\'' +
                ", submitterName='" + submitterName + '\'' +
                ", screenshot1=" + screenshot1 +
                ", screenshot2=" +screenshot2 +
                '}';
    }
}